@charset "utf-8";

*{
    margin: 0;
    padding: 0;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
//rem换算函数
@function r($px){
    @return ($px/40)*1rem; 
}
#FlyingBear{
    width: 400px;
    height: 100vh;
    background-image: url(../img/game/bg_back.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0% 0%;
    position: absolute;
    left: 55%;
    margin-left: -300px;
    overflow: hidden;
    max-height: 812px;
    //顶部赞助商
    #topTitle{
        width: 100%;
        height: 10vh;
        position: relative;
        //文字
        div>img{
            width: 70%;
            position: absolute;
            left: 50%;
            top: 20%;
            transform: translateX(-50%);
            -webkit-user-select: none;
            pointer-events:none;
        }
    }
    
    //飞行区域
    #flyArea{
        width: 100%;
        height: 70vh;
        //熊和枕头        
        #bearAndPillow{
            position: absolute;
            top: -10%;
            left: 10%;
            width: 100px;
            margin-top: -52px;
            height: 200px;
            //枕头
            #pillow{
                display: inline-block;
                width:60%;
                height: 100%;
                position: absolute;
                top: 8%;
                left: 10%;
                z-index: 1;
                img{
                    width: 60px;
                    height: 50px;
                    pointer-events:none;
                    -webkit-user-select: none;
                }
            }
            //熊
            #bear{
                display: inline-block;
                width: 100%;
                height: 100%;
                position: absolute;
                top: 0;
                left: 0;
                z-index: 2;
                img{
                    width: 100px;
                    height: 80px;
                    -webkit-user-select: none;
                    pointer-events:none;
                }
            }
        }
    }
    
    //地面
    #ground{
        width: 100%;
        height: 20vh;
        position: relative;
        //能量条
        #power{
            width: 50%;
            height: 60px;
            position: absolute;
            left: 25%;
            top: -10%;
            #powerNum{
                width: 10%;
                height: 50%;
                margin-left: 0;
                color: white;
            }
            #powerBar{
                width: 100%;
                height: 50%;
                border: 2px solid white;
                border-radius:15px ;
                position: relative;
                overflow: hidden;
                #powerEnergy{
                    width: 0%;
                    height: 100%;
                    background-image: linear-gradient(left,red,yellow,green);
                }
                #powerText{
                    width: 50%; 
                    height: 100%;
                    text-align: center;
                    position: absolute;
                    left: 50%;
                    top: 60%;
                    transform: translate(-50%,-50%);
                    font-size: 16px;
                    color: white;
                }
            }
        }
    }
    //提示1
    #tip1{
        width: 100%;
        height: 100px;
        position: absolute;
        top: 45%;
        transform: translateY(-50%);
        &>div:nth-of-type(1){
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            font-size: 18px;
        }
        &>div:nth-of-type(2){
            position: absolute;
            left: 50%;
            top: 30%;
            transform: translateX(-50%);
            color: white;
            i{
                font-size: 30px;
            }
        }
    }
    //提示2
    #tip2{
        width: 100%;
        height: 100px;
        position: absolute;
        top: 45%;
        transform: translateY(-50%);
        &>div:nth-of-type(1){
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            font-size: 18px;
        }
        &>div:nth-of-type(2){
            position: absolute;
            left: 50%;
            top: 30%;
            transform: translateX(-50%);
            color: white;
            i{
                font-size: 30px;
            }
        }
    }
    //背景图片集合
    #bgImg{
        width: 100%;
        #beginImg,#endImg{
            position: absolute;
            top: 53%;
            width: 100%;
            img{
                width: 400px;
                -webkit-user-select: none;
                pointer-events:none;
            }
        }
        #star1Img,#star2Img,#star1ImgClone,#star2ImgClone{
            position: absolute;
            top: 45%;
            width: 100%;
            img{
                width: 400px;
                -webkit-user-select: none;
                pointer-events:none;
            }
        }
        #star1Img,#star1ImgClone{
            top: 20%;
        }
        #sky1Img,#sky2Img{
            position: absolute;
            top: 15%;
            width: 100%;
            img{
                width: 400px;
                -webkit-user-select: none;
                pointer-events:none;
            }
        }
       
        #pao1,#pao2,#pao3,#pao4,#pao5,#pao6,#pao7,#pao8,#pao9,#pao10,#pao11,#pao12{
            position: absolute;
            top: 30%;
            width: 100%;
            img{
                width: 400px;
                -webkit-user-select: none;
                pointer-events:none;
            }
        }
    }
    //模态框
    #myModal{
        margin: 0;
        padding: 0;
        width: 400px;
        height: 100vh;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        .modal-dialog{
            margin: 0;
        }
        //模态框内容
        .modal-content{
            width: 400px;
            height: 60vh;
            margin-top: 20vh;
            background-color: rgb(107,140,255);
            //模态框主体
            .modal-body{
                padding:0 ;
                margin: 0;
                padding-top: r(40);
                .col-xs-10:not(.CongratsText){
                    border-bottom: 1px solid white;
                    border-top: 1px solid white;
                    height: 5px;
                }
                .col-xs-5{
                    margin-top: 10px;
                    margin-bottom: 10px;
                    text-align: center;
                    color: white;
                }
                &>.nowScore,.historyScore{
                    font-weight: 600;
                    font-size: 30px;
                    color: rgb(255,236,139);
                }
               .CongratsText{
                   text-align: center;
                   font-size: 14px;
                   color: white;
                   .nowScore{
                       font-weight: 600;
                        font-size: 30px;
                        color: rgb(255,236,139);
                   }
               }
               
            }
            //模态框尾部
            .modal-footer{
                border: none;
                margin-top: 30px;
                width: 100%;
            }
        }
    }
}










@media (max-width:768px){
    #FlyingBear{
        width:100%;
        left: 0%;
        margin-left: 0px;
    }
    #FlyingBear #topTitle div{
        font-size: 30px;
    }
    #FlyingBear #flyArea #bearAndPillow{
        width: 80px;
        height: 40px;
        margin-top: -42px;
    }
    #FlyingBear #ground #power{
        height: 50px;
    }
    #FlyingBear #ground #power #powerBar #powerText{
        width: 50%; 
        height: 100%;
        text-align: center;
        position: absolute;
        left: 50%;
        top: 60%;
        transform: translate(-50%,-50%);
        font-size: 12px;
        
    }
    #FlyingBear #flyArea #bearAndPillow #pillow{
        top: 30%;
    }
    #FlyingBear #bgImg #beginImg img{
        width: 100vw;
    }
    #FlyingBear #bgImg #beginImg{
       top: r(690);
    }
    #FlyingBear #bgImg #endImg img{
        width: 100vw;
    }
    #FlyingBear #bgImg #endImg{
       top: r(690);
    }
    #FlyingBear #bgImg #pao1{
       top: r(300);
    }
    #FlyingBear #bgImg #pao2{
       top: r(300);
    }
    #FlyingBear #bgImg #pao3{
       top: r(300);
    }
    #FlyingBear #bgImg #pao4{
       top: r(300);
    }
    #FlyingBear #bgImg #pao5{
       top: r(300);
    }
    #FlyingBear #bgImg #pao6{
       top: r(300);
    }
    #FlyingBear #bgImg #pao7{
       top: r(300);
    }
    #FlyingBear #bgImg #pao8{
       top: r(300);
    }
    #FlyingBear #bgImg #pao9{
       top: r(300);
    }
    #FlyingBear #bgImg #pao10{
       top: r(300);
    }
    #FlyingBear #bgImg #pao11{
       top: r(350);
    }
    #FlyingBear #bgImg #pao12{
       top: r(350);
    }
    #FlyingBear #myModal{
        width: r(700);
    }
    #FlyingBear #myModal .modal-content{
        width: r(700);
        height: r(700);
    }
    #FlyingBear #myModal .modal-content .modal-body{
        width: r(700);
        padding-top: r(50);
    }
} 
